package com.yycx.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 认证状态
 *
 * @author zyf
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum AuthStatusEnum {
    /**
     * 未认证
     */
    NOAUTH(0, "未认证"),
    /**
     * 待审核
     */
    AUTHING(1, "待审核"),
    /**
     * 已认证
     */
    AUTHSUCCESS(2, "已认证"),
    /**
     * 审核失败
     */
    AUTHFAIL(10, "审核失败");

    AuthStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    @EnumValue
    private final Integer code;
    private final String name;

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
